/*
 * Copyright 2008 Jens Meiss
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.hmvc4gwt.hmvc.gwt.framework.server.service.gwt;

import java.util.LinkedList;
import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.googlecode.hmvc4gwt.hmvc.core.registry.artifact.IArtifact;
import com.googlecode.hmvc4gwt.hmvc.gwt.framework.client.registry.session.artifacts.IArtifactsRemote;

/**
 * 
 *
 * @author jens.meiss
 */
public class ArtifactsRemoteImpl extends RemoteServiceServlet implements IArtifactsRemote {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1732473186058226345L;
	
	private static List<String> listArtifacts = new LinkedList<String>();
	
	public static void addArtifact(Class<? extends IArtifact> classOfArtifact) {
		listArtifacts.add(classOfArtifact.getName());
	}

	/**
	 * 
	 */
	public ArtifactsRemoteImpl() {
		// TODO Auto-generated constructor stub
	}
	
	public List<String> getListArtifacts() {
		return ArtifactsRemoteImpl.listArtifacts;
	}
	
	

}
